package cn.tedu.hongbei.pms.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class CategoryAddNewParam implements Serializable {
    @NotEmpty(message = "必须提交类别名称!")
    @ApiModelProperty(value = "品牌名称",required = true,example = "品牌男装")
    private String name;
    @ApiModelProperty(value = "父级ID")
    private Long parentId;
    @ApiModelProperty(value = "关键字")
    private String keywords;
    @NotNull
    @Range(max = 99,message = "排序必须在0-99之间")
    @ApiModelProperty(value = "类别排序")
    private Integer sort;
    @ApiModelProperty(value = "类别图标")
    private String icon;
    @NotNull
    @Range(max = 1,message = "排序必须在0-1之间")
    @ApiModelProperty(value = "是否禁用")
    private Integer enable;
    @NotNull
    @Range(max = 1,message = "排序必须在0-1之间")
    @ApiModelProperty(value = "是否在导航栏中启用")
    private Integer isDisplay;


}
